using System;
using System.Windows.Forms;

namespace SpriteBuilder
{
#if WINDOWS || XBOX
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThreadAttribute]
        static void Main(string[] args)
        {

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            // Application.Run(new Form1());
            using (MainFrameForm form1 = new MainFrameForm())
            {
                Game1 editor = new Game1(form1.getDrawSurface);
                form1.SetEditor(editor);
                form1.WindowState = FormWindowState.Maximized;
                form1.Show();                
                editor.Run();
            }
        }
    }
#endif
}

